package cn.hdu.liang.singleton.enumsingleton;

public enum Singleton {
    INSTANCE;
    public void print() {
        System.out.println("使用enum实现单例模式");
    }

    public static void main(String[] args) {
        Singleton sole = Singleton.INSTANCE;
        sole.print();
    }
}
